import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../config/config.dart';

class AddRecordImageWidget extends StatelessWidget {

   AddRecordImageWidget({super.key,this.title="图片"});

   String title;

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      margin: EdgeInsets.only(top: 30.w, left: 35.w, right: 35.w),
      padding: EdgeInsets.symmetric(horizontal: 35.w, vertical: 35.w),
      decoration: BoxDecoration(
        color: Config.colorBg2,
        borderRadius: BorderRadius.circular(Config.roundBig.w),
      ),
      child: Column(
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text(
                title,
                style: TextStyle(color: Config.colorText1, fontSize: Config.textSizeSubTitle.sp),
              ),
              Text(
                '0/3',
                style: TextStyle(color: Config.colorText3, fontSize: Config.textSizeSubTitle.sp),
              ),
            ],
          ),
          SizedBox(
            height: 35.w,
          ),
          Row(
            children: [
              Container(
                width: 160.w,
                height: 160.w,
                decoration: BoxDecoration(
                    color: Config.colorMain.withOpacity(0.1),
                    borderRadius: BorderRadius.circular(20.w)),
                child: Icon(
                  Icons.add,
                  size: 84.w,
                  color: Config.colorDivider,
                ),
              )
            ],
          )
        ],
      ),
    );
  }
}
